Ext.define('DCApp.view.attach.Detail', {
	extend: 'DCApp.view.Detail',
	alias: 'widget.Attachdetail',

	bind: {
	title: '用户 - 【{theObj.id}】'
	},

	componentCls: 'attach-detail',
	bodyPadding: 0,

	controller: 'detail',

	afterRender: function(ct, position) {
	this.callParent();
	},
	items: [{
	title: 'Panel 0',
	flex: 2,
	frame: false,
	xtype: 'container',
	layout: 'anchor',
	style: {
	overflow: 'auto'
	},

	items: [
	{
	title : '详情',
	margin : '0 0 10 0',
	cls : 'nav_pos',
	reference : 'form',
	bodyPadding : 10,
	fieldDefaults : {
	labelAlign : 'right',
	labelWidth : 100,
	padding : 3
	},
	defaults : {
	anchor : '100%'
	},
	xtype: 'form',
	items: [

	{
		xtype: 'container',
		layout: 'hbox',
		defaultType: 'textfield',
		items:[	{
			flex: 1,
			fieldLabel: '题名',
			bind: '{theObj.title}'
			},
		{
		flex: 1,
		fieldLabel: '文件名',
		bind: '{theObj.fname}'
		}]
	},
	{
		xtype: 'container',
		layout: 'hbox',
		defaultType: 'textfield',
		items:[
		{

	    	xtype: 'htmleditor',
	    	bind: {
	            value: '{theObj.content}'
	        },
	    	fieldLabel: '内容'
		}]
	},

	
	{
    xtype: 'fieldset',
    title: '更多信息',
    collapsible: true,
    collapsed:true,
    defaults: {
    labelWidth: 89,
    anchor: '100%',
    layout: {
          type: 'hbox',
          defaultMargins: {top: 0, right: 5, bottom: 0, left: 0}
         }
   }, items:[
         	{
        		xtype: 'container',
        		layout: 'hbox',
        		defaultType: 'textfield',
        		items:[	
        		{
        			flex: 1,
        			fieldLabel: '条目类名',
        			bind: '{theObj.ename}'
        			},
        		{
        		flex: 1,
        		fieldLabel: '条目id',
        		bind: '{theObj.eid}'
        		}	]
        	},
        	{
        		xtype: 'container',
        		layout: 'hbox',
        		defaultType: 'textfield',
        		items:[
        		{
        		flex: 1,
        		fieldLabel: '后缀',
        		bind: '{theObj.suffix}'
        		},	{
        			flex: 1,
        			fieldLabel: '文件大小',
        			bind: '{theObj.fsize}'
        			}		]
        	},
        	{
        		xtype: 'container',
        		layout: 'hbox',
        		defaultType: 'textfield',
        		items:[
        		{
        		flex: 1,
        		fieldLabel: '操作人id',
        		bind: '{theObj.uid}'
        		},	{
        			flex: 1,
        			fieldLabel: '用途',
        			bind: '{theObj.purpose}'
        			}	]
        	}
   
    ]	
},
	
	
	{
		xtype: 'container',
		layout: 'hbox',
		defaultType: 'textfield',
		items:[
		{
		flex: 1,
		xtype: 'fileupload',
		fieldLabel: '存储路径',
		bind: '{theObj.path}'
		}	]
	}
	
	]}]
	 }]
	});
